<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%>
<%@ page import="com.ekingstar.framework.security.UserUtil"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title></title>
<style type="text/css">
body{
	margin:0px; padding:0px;
}
.login{
	background:url(images/login.jpg) no-repeat center; height:606px; width:1000px; vertical-align:top;
}
.logo{
	background:url(images/logo.png) no-repeat;position:absolute; height:50px;  width:200px; margin:220px 0 0 200px;
}
.xmname{
	font-size:26px; color:white; font-weight:bold; position:absolute; margin:280px 0 0 200px; font-family:黑体;
}
.btnlogin{
	position:absolute;margin:299px 0 0 760px; 
}
input{
	border:0px;
}
</style>
</head>

<body>
	<div style="position:absolute;top:150px;left:600px;color:red">
	<s:if test="#session.SPRING_SECURITY_LAST_EXCEPTION instanceof org.springframework.security.concurrent.ConcurrentLoginException">
		<s:property value="#session.SPRING_SECURITY_LAST_USERNAME"/>已在别处登陆
	</s:if>	
	<s:if test="#session.SPRING_SECURITY_LAST_EXCEPTION instanceof org.springframework.security.AuthenticationException">
		用户名或密码不对
	</s:if>	
	</div>
	<table align="center" cellpadding="0" cellspacing="0">
	<form id="form" action='/j_spring_security_check' method='POST'>
	<tr>
		<td class="login">
		<div class="logo"></div>
		<div class="xmname">组织部信息系统</div>
		<div style="position:absolute;margin:248px 0 0 288px;"><input value="<s:property value='#session.SPRING_SECURITY_LAST_USERNAME'/>" name="j_username" type="text"/></div>
		<div style="position:absolute;margin:304px 0 0 288px;"><input name="j_password" type="password" /></div>
		<div><input name="imageCodeName" type="text"/><img src='<s:url value="/codeimage"/>' style="cursor: pointer; " 
		  onclick="this.src='<s:url value="/codeimage"/>?'+Math.floor(Math.random()*100)" ></div>
		<div class="btnlogin"><img src="images/btn_login.gif" onclick="document.getElementById('form').submit();" style="cursor: pointer; "/></div>
		</td>
	</tr>
	
	</form>
</table>
	
</body>
</html>
